package com.sunni.dao_old.Impl;

import com.sunni.dao_old.UserDao;
import org.springframework.stereotype.Repository;

//<bean id="userDao" class="com.sunni.dao_old.Impl.UserDaoImpl"></bean>
//@Component("userDao") // 语义不明确
@Repository("userDao") // 语义明确，相当于@Component的子类
public class UserDaoImpl implements UserDao {
    @Override
    public void save() {
        System.out.println("save running...");
    }
}
